#ifndef CC_MYPLUGIN_DLG_HEADER
#define CC_MYPLUGIN_DLG_HEADER

#include <ui_MyPluginDlg.h>

class ccGLWindow;
class ccHObject;

class MyPluginDlg : public QDialog, public Ui::MyPluginDlg
{
public:
    MyPluginDlg(QWidget* parent=0);
	~MyPluginDlg();

	void linkWith(ccGLWindow* win);

	//! Shows dialog and starts graphical interaction
	bool start();

    //! Hides dialog and ends graphical interaction
	void stop();

protected:
	ccGLWindow* m_associatedWin;

protected slots:

    //! Applies transformation to selected entities
    void apply();

    //! Resets transformation
    void reset();

    //! Cancels (no transformation is applied)
    void cancel();

signals:

    //! Signal emitted when the process ends
    void myPluginFinished(bool);

protected:

    //! Clear all variables and 'unlink' dialog
    void clear();
};

#endif
